/*
 * Copyright © 2023-2025 puyinzhen
 * All rights reserved.
 *
 * The copyright of this work (or idea/project/document) is owned by puyinzhen. Without explicit written permission, no part of this work may be reproduced, distributed, or modified in any form for commercial purposes.
 *
 * This copyright statement applies to, but is not limited to: concept descriptions, design documents, source code, images, presentation files, and any related content.
 *
 * For permission to use this work or any part of it, please contact 1182810784@qq.com to obtain written authorization.
 */

.source-library {
  width: 280px;
  height: 100%;
  display: flex;
  background-color: #1E1E2F;
  font-family: 'Helvetica Neue', Arial, sans-serif;

  .source-categorize {
    width: 64px;
    background-color: #2C2C3E;
    border-right: 1px solid #3A3A4E;
    padding: 8px 0;

    .categorize-item {
      color: #A0A0B2;
      font-size: 12px;
      line-height: 16px;
      padding: 12px 8px;
      margin: 4px 0;
      text-align: center;
      cursor: pointer;
      border-radius: 4px;
      transition: all 0.2s ease;

      &:hover {
        color: #4FB8FF;
        background-color: rgba(79, 184, 255, 0.1);
      }

      &-active {
        color: #4FB8FF;
        background-color: rgba(79, 184, 255, 0.2);
        font-weight: 500;
      }
    }
  }

  .source-library-content {
    flex: 1;
    overflow-y: auto;
    background-color: #1E1E2F;

    &::-webkit-scrollbar {
      width: 3px;
    }

    &::-webkit-scrollbar-thumb {
      background-color: rgba(79, 184, 255, 0.47);
      border-radius: 3px;
    }

    &::-webkit-scrollbar-track {
      background-color: #2C2C3E;
    }
  }
}

/* 加载状态样式 */
.loading-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1E1E2F;
}